#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2021/8/19 15:44
# @Author  : 李中华
# @Email   : 1260429766@qq.com
# @File    : readConfig.py
from configparser import ConfigParser
from ProgramPath import programPath
import os

conf = ConfigParser()
configFilePath = os.path.join(programPath , 'config' ,'config.ini')

class ReadConfig:
    def __init__(self):
        conf.read(configFilePath,encoding='gbk')

    def getConfValue(self,section,option):
        value = conf.get(section,option)

        return value

if __name__ == '__main__':
    print(ReadConfig().getConfValue('mskjWebPlateform','logurl'))
    print(type(ReadConfig().getConfValue('admin登录入口','cookies')))